namespace CodeConsult.Nordic.nRF8001.ApplicationControlInterface.Events.CommandResponseEvents
{
    public class GetDeviceVersionCommandResponse : AciCommandReponseBase
    {
        public ushort ConfigurationId { get; set; }
        public byte AciProtocolVersion { get; set; }
        public byte CurrentSetupFormat { get; set; }
        public uint SetupId { get; set; }
        public byte ConfigurationStatus { get; set; }

        protected override void DecodeFromBuffer()
        {
            ConfigurationId = DecodeHelper.GetUnsignedShort(DecodeHelper.ByteOrder.LsbMsb);
            AciProtocolVersion = DecodeHelper.GetByte();
            CurrentSetupFormat = DecodeHelper.GetByte();
            SetupId = DecodeHelper.GetUnsignedInt(DecodeHelper.ByteOrder.LsbMsb);
            ConfigurationStatus = DecodeHelper.GetByte();
        }
    }
}
